import axios from "../axios/axios";

export function login(username, password) {
  return axios.post("/login", {
    username,
    password
  }, {
    headers: {
      "Content-Type": "application/json"
    }
  });
}

export function register(username,password){
  console.log(username);
  console.log(password);
  return axios.post("/register", {
    username,
    password
  }, {
    headers: {
      "Content-Type": "application/json"
    }
  });
}